/** @var string 待装柜 */
export const WAIT_MAKE_CABINET = 'wait_make_cabinet';

/** @var string 待报关  */
export const WAIT_CUSTOMS_DECLARATION = 'wait_customs_declaration';

/** @var string 待装货 */
export const WAIT_SHIPMENT = 'wait_shipment';

/** @var string 待清关 */
export const WAIT_CUSTOMS_CLEARANCE = 'wait_customs_clearance';

/** @var string 待海外接收 */
export const WAIT_RECEIVE = 'wait_receive';

/** @var string 待分拣 */
export const WAIT_SORTING = 'wait_sorting';

/** @var string 已分拣 */
export const FINISHED_SORTING = 'finished_sorting';

/**
 * 获取货柜状态
 * @param status
 * @returns {*|string}
 */
export function getContainerStatusStr(status){
  const obj = {
    [WAIT_MAKE_CABINET]: '待装柜',
    [WAIT_CUSTOMS_DECLARATION]: '待报关',
    [WAIT_SHIPMENT]: '待装货',
    [WAIT_CUSTOMS_CLEARANCE]: '待清关',
    [WAIT_RECEIVE]: '待海外接收',
    [WAIT_SORTING]: '待分拣',
    [FINISHED_SORTING]: '已分拣'
  }
  return obj[status] || '未知';
}
